package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.Order;

import java.util.List;
import java.util.Map;

/**
 * 发货网点设置接口
 * Created by wxm on 2019-5-15
 */
public interface WebSetMapper extends IBaseMapper<Order> {

    List<Order> searchOrderForIndex(Order entity);


    /***
     * 查询首页订单数据{已受理10条，未受理10条}
     *
     * @param entity
     * @return
     */
    List<Order> searchOrderForIndexPage(Map<String, Object> entity);
    /**
     * 修改
     *
     * @param order
     * @return
     */
    Integer updateById(Order order);

    /**
     * 删除
     *
     * @param order
     * @return
     */
    Integer deleteById(Order order);

    List<Order> queryOrderList(Map<String, Object> params);

    /**
     * @mbggenerated 2018-03-30
     */
    Order selectByPrimaryKey(Long id);

    /**
     * 查询我的订单列表
     *
     * @param params
     * @return
     */
    List<Order> queryMyOrderList(Map<String, Object> params);


    /**
     * 删除“非转正式订单”(删除generate_flag生成货运单标识为不等于1的“非转正式订单”）
     *
     * @param order
     * @return
     */
    Integer deleteNotRegularById(Order order);

    Order selectById(Long id);
}
